home *** CD-ROM | disk | FTP | other *** search
/ PCNet 1998 June / PCnet Haziran 1998.iso / Internet / Tools / ANJAVA10.ZIP / DATA1.CAB / Program_Executable_Files / Applet / lake / anlake.txt < prev    next >
Encoding:
Text File  |  1998-04-23  |  4.9 KB  |  95 lines

  1.  
  2.           Anfy Lake 1.0 - Copyright (C) by Fabio Ciucci 1998
  3.  
  4.  
  5. This applet can generate a reflection effect under any GIF or JPG image.
  6. It is very similiar to Lake and DorianGray applets made by other authors,
  7. but this one has a different approach since it it calculated in realtime,
  8. so it require less memory (about 10 times less!).
  9. I made a similiar effect on 1990 on Amiga computers using assembler language,
  10. so I think I haven't copied this idea to others that made it in java lately,
  11. in 1996-97.
  12. Remember that are needed both AnLake.class , Lware.class and anfy.class.
  13. You must upload these 3 .class files and insert the <applet> tag on your
  14. html document to add this applet to your page.
  15. This applet is fully parametrized, so you can generate all kinds of lakes
  16. you want. Here an example of what you have to write in the html (the
  17. things anfter the ; are comments with min-max values acceptet):
  18.  
  19.  
  20. <applet code="AnLake.class" width=300 height=256> ; Name, Width, Height
  21. <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
  22. <param name=regcode value="NO">         ; Register code (if you have it)
  23. <param name=reglink value="NO">         ; URL where go optionally when clicked
  24. <param name=regnewframe value="YES">    ; Reglink opened in new frame?
  25. <param name=statusmsg value="AnLake applet">  ; Statusbar message
  26. <param name=res value="1">              ; resolution (1 .. 8)
  27. <param name=image value="palio.jpg">    ; Image to load
  28. <param name=textscroll value="NO">      ; File for scrolltext or "NO"
  29. <param name=wavspeed value="30">        ; Speed of waving (1..200)
  30. <param name=perspective value="10">     ; Perspective (1..100)
  31. <param name=farwaving value="200">      ; Far waving intensity (1..10000)
  32. <param name=wind value="10">            ; Wind intensity (1..20)
  33. <param name=windvarval value="5">       ; Wind variation speed (0..200)
  34. <param name=windvarmin value="5">       ; Wind variation min (0..20)
  35. <param name=windvarmax value="15">      ; Wind variation max (0..20)
  36. <param name=textscroll value="NO">      ; File for scrolltext or "NO"
  37. <param name=textoffset value="140">       ; Txtscroll y offset
  38. <param name=textspeed value="1">          ; Txtscroll speed
  39. <param name=textfont value="Arial">       ; Txtscroll font name
  40. <param name=textbold value="NO">          ; Txtscroll bold ("YES" or "NO")
  41. <param name=textsize value="24">          ; Txtscroll font size
  42. <param name=textshadow value="YES">       ; Txtscroll shadow ("YES" or "NO")
  43. <param name=TextColR value="200">         ; Txtscroll color (red component)
  44. <param name=TextColG value="255">         ; Txtscroll color (green component)
  45. <param name=TextColB value="190">         ; Txtscroll color (blue component)
  46. <param name=TextSColR value="20">         ; Txtscroll shadow col. (red c.)
  47. <param name=TextSColG value="20">         ; Txtscroll shadow col. (green c.)
  48. <param name=TextSColB value="50">         ; Txtscroll shadow col. (blue c.)
  49. <param name=TextJumpAmp value="0">        ; Txtscroll jump aplitude
  50. <param name=TextJumpSpd value="0">        ; Txtscroll jump speed
  51. <param name=TextSineAmp value="0">        ; Txtscroll sineshape amplitude        
  52. <param name=TextSineSpd value="0">        ; Txtscroll sineshape movement
  53. <param name=TextSineAngle value="0">      ; Txtscroll sineangle / pixel  
  54. <param name=memdelay value="1000">        ; Memory deallocation delay
  55. <param name=priority value="3">           ; Task priority (1..10)
  56. <param name=MinSYNC value="10">           ; Min. milliseconds/frame for sync
  57. Sorry, your browser doesn't suppor Java.  ; Msg in no java browsers
  58. </applet>
  59.  
  60.                              ---------
  61.  
  62. Here detailed instructions about how to change parameters:
  63.  
  64. The credits parameter can't be changed otherwise the applet will not work.
  65. For the reg parameters read the shareware registration notes at end of text.
  66.  
  67. The GIF/JPG image can be of any size.
  68. The aplet size must me same of image in width, double in height: for example,
  69. if the image is 160x100, applet size must be 160x200.
  70.  
  71. If res=1, remember to place the exact size of image in "width" and "height"
  72. tags, with height multiplied by 2.
  73. If res=2, place double values of width and quadruple of height, if res=3
  74. triple values of width, sit times the height, etc.
  75. In fact, res is a sort of zoomer.
  76.  
  77. With "wavspeed" parameter (values from 1 to 200) you decide the speed of
  78. waving.
  79.  
  80. With "perspective" parameter (values from 1 to 100) you decide how the waves
  81. have to be stretched for perspective simulation.
  82.  
  83. The "farwaving" parameter (values from 1 to 10000) you decide how string the
  84. far waves (top of lake) must be.
  85.  
  86. With "wind" parameter (values from 1 to 20) you decide how string the waving
  87. will be.
  88.  
  89. Optionally, you can make the wind dynamically change, setting the
  90. parameter "windvarval" as more than 0 (higher values mean higher change).
  91. Then, with the parameters "windvarmin" and "windvarmax" you can control the
  92. min and max values of wind reached.
  93.  
  94.  
  95.